<form name="upload_img"  enctype="multipart/form-data" method="post" action="index.php">
<input type="hidden" name="function" value="{function}" />
<input name="p" type="hidden" value="{p}" />
<input type="hidden" name="filename" value="{filename}" />
<input type="hidden" name="module" value="images" />
<table align="center" width="100%" border="0" class="tabelka2">
<tr>
    <td align="center" width="100" class="row_1"><?echo($lang['file_name'].':');?></td>
    <td align="left" width="100" class="row_1"><input name="name" type="text" class="button" value="{name}" /></td>
</tr>
<tr>
     <td class="row_2" align="left" colspan="2">{multi}</td>
</tr>
<tr valign="top">
   <td class="row_1" align="center"><?echo($lang['admin_image']);?></td>
   <?php if('{function}' == 'img_edit')
   {
   ?>
   <td align="left" valign="top" class="row_1"><input type="radio" name="how_image" class="radio" value="no_change" CHECKED><br />
   <a href="{link}" target="_blank"><img src="{src}" /></a></td>
   </tr>
   <tr>
   <td class="row_1" align="left"></td>
   <?php
   }
   ?>
	<td align="left" class="row_1"><input type="radio" name="how_image" id="disk" class="radio" value="form" class="button" {checked} />
    <?echo($lang['disk']);?><br />
   <input type="file" name="image_form" class="button" onchange="javascript:document.getElementById('disk').checked=true;" /></td>
  </tr>
  <tr>
    <td class="row_1" align="left"></td>
    <td align="left" class="row_1">
      <input type="radio" name="how_image" class="radio" id="url" value="link" class="button" />
      <?echo($lang['url']);?><br /><input type="text" name="image_link" class="button" value="http://" class="button" onchange="javascript:document.getElementById('url').checked=true;" />
      </td>	  
  </tr>

  <tr>
    <td class="row_2" align="center"><?echo($lang['directory'].':');?></td>
    <td align="left" class="row_2"><select name="path" class="button">{path_options}</select>
	<br /> <input type="text" name="s_path" size="10" class="button" onkeyup="javascript:findInSelect(this.form.s_path.value, this.form.path, 1);" /> <input type="button" onclick="javscript:resetSelect(this.form.path, 1); this.form.s_path.value='';" class="button" value="<?echo($lang['reset']);?>" /> </td>
	</td>
  </tr>
  <tr>
    <td width="100" class="row_1" align="center"><?echo($lang['admin_source']);?></td>
    <td width="100" align="left" class="row_1"><input name="source" type="text" class="button" value="{source}" /></td>
  </tr>
  <tr>
    <td width="100" class="row_2" align="center"><?echo($lang['admin_source_url']);?></td>
    <td width="100" align="left" class="row_2"><input name="source_url" type="text" class="button" value="{source_url}" /></td>
  </tr>
  <tr>
    <td width="100" class="row_1" align="center"><?echo($lang['watermark_watermark']);?>:</td>
    <td width="100" align="left" class="row_1"><select name="watermark" class="button">{watermark_options}</select><br />
    <?echo($lang['watermark_position']);?>:<br />
    <select name="watermark_pos" class="button">
    <option value="1" <?if($conf['img_def_watermark_pos']==1) echo('selected');?>><?echo($lang['watermark_tl']);?></option>
    <option value="2" <?if($conf['img_def_watermark_pos']==2) echo('selected');?>><?echo($lang['watermark_tr']);?></option>
    <option value="3" <?if($conf['img_def_watermark_pos']==3) echo('selected');?>><?echo($lang['watermark_bl']);?></option>
    <option value="4" <?if($conf['img_def_watermark_pos']==4) echo('selected');?>><?echo($lang['watermark_br']);?></option>
    </select>
    </td>
  <tr>
    <td align="center" colspan="2"><input name="send" type="submit" id="send" value="<?echo($lang['submit']);?>" class="button" /></td>
  </tr>
</table>
</form><br />
<table border="0" cellspacing="2" cellpadding="0" align="center" width=320><tr><td align=left><?echo($lang['hint_image_1'].'<br />'.$lang['hint_image_2'].'<br />'.$lang['hint_image_3']);?></td></tr></table>
